package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitUserLevelRouter(Router *gin.RouterGroup) {
	UserLevelRouter := Router.Group("userLevel").Use(middleware.OperationRecord())
	{
		UserLevelRouter.POST("createUserLevel", v1.CreateUserLevel)   // 新建UserLevel
		UserLevelRouter.DELETE("deleteUserLevel", v1.DeleteUserLevel) // 删除UserLevel
		UserLevelRouter.DELETE("deleteUserLevelByIds", v1.DeleteUserLevelByIds) // 批量删除UserLevel
		UserLevelRouter.PUT("updateUserLevel", v1.UpdateUserLevel)    // 更新UserLevel
		UserLevelRouter.GET("findUserLevel", v1.FindUserLevel)        // 根据ID获取UserLevel
		UserLevelRouter.GET("getUserLevelList", v1.GetUserLevelList)  // 获取UserLevel列表
	}
}
